package com.lzy.api.feign;

import com.lzy.grace.result.GraceJSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

//使用接口时调用进行微服务之间通信 服务的注册
@FeignClient(value = "file-service")
public interface FileMicroServiceFeign {

    @PostMapping("file/generateorQrCode")
    public GraceJSONResult generateorQrCode(@RequestParam("wechatNumber")String wechatNumber,
                                            @RequestParam("userId")String userId);
}
